package cn.com.generaldata.jsme_indicator_system.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;

import lombok.Data;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * 统计制度指标表.
 */
@Data
@Table("t_indicator")
public class Indicator implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;

	// columns START
	/**
	 * id db_column: id
	 */
	@Id(auto = false)
	@Column("id")
	private Integer id;
	/**
	 * pid db_column: pid
	 */
	@Column("pid")
	private Integer pid;
	/**
	 * oid db_column: oid
	 */
	@Column("oid")
	private Integer oid;
	/**
	 * opid db_column: opid
	 */
	@Column("opid")
	private Integer opid;
	/**
	 * 统计制度id db_column: stat_system_id
	 */
	@Column("stat_system_id")
	private Integer statSystemId;
	/**
	 * 指标代码 db_column: code
	 */
	@Column("code")
	private String code;
	/**
	 * pcode db_column: pcode
	 */
	@Column("pcode")
	private String pcode;
	/**
	 * 指标名称 db_column: name
	 */
	@Column("name")
	private String name;
	/**
	 * 国标代码 db_column: national_standard_code
	 */
	@Column("national_standard_code")
	private String nationalStandardCode;
	/**
	 * 指标分类 db_column: category
	 */
	@Column("category")
	private Integer category;
	/**
	 * 统计频率 db_column: frequency
	 */
	@Column("frequency")
	private Integer frequency;
	/**
	 * 重要程度 db_column: importance
	 */
	@Column("importance")
	private Integer importance;
	/**
	 * 数据类型 db_column: data_type
	 */
	@Column("data_type")
	private Integer dataType;
	/**
	 * 枚举列表，多个以逗号分隔 db_column: enum_values
	 */
	@Column("enum_values")
	private String enumValues;
	/**
	 * 指标单位 db_column: unit
	 */
	@Column("unit")
	private String unit;
	/**
	 * 单位数量级 db_column: unit_magnitude
	 */
	@Column("unit_magnitude")
	private Double unitMagnitude;
	/**
	 * 指标汇总权重 db_column: weighted
	 */
	@Column("weighted")
	private BigDecimal weighted = BigDecimal.ONE;
	/**
	 * 所属海洋产业大类代码 db_column: industry_code
	 */
	@Column("industry_code")
	private String industryCode;
	/**
	 * 是否启用 db_column: enabled
	 */
	@Column("enabled")
	private Integer enabled;
	/**
	 * 是否可以求和汇总 db_column: SUMMARIZATION
	 */
	@Column("SUMMARIZATION")
	private Integer summarization;
	/**
	 * 是否可取上期数据 db_column: GET_LAST_TIME_DATA
	 */
	@Column("GET_LAST_TIME_DATA")
	private Integer getLastTimeData;
	/**
	 * 指标说明 db_column: description
	 */
	@Column("description")
	private String description;
	/**
	 * 创建时间 db_column: create_time
	 */
	@Column("create_time")
	@ColDefine(update = false)
	private java.sql.Timestamp createTime = new Timestamp(System.currentTimeMillis());
	/**
	 * 最后修改时间 db_column: last_update
	 */
	@Column("last_update")
	@ColDefine(update = true)
	private java.sql.Timestamp lastUpdate = new Timestamp(System.currentTimeMillis());
	// columns END

}
